]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
window: Port to AdwApplicationWindow
authorChristopher Davis <christopherdavis@gnome.org>
Mon, 19 Jun 2023 00:53:30 +0000 (20:53 -0400)
committerChristopher Davis <christopherdavis@gnome.org>
Mon, 19 Jun 2023 00:53:30 +0000 (20:53 -0400)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2802>

subprojects/extensions-app/data/ui/extensions-window.ui
subprojects/extensions-app/js/main.js

index 88e0f1173c0121129efaf63f2ba83c85f1ef6134..e214b97a2306a5578f4c0712ab00dd55620699f5 100644 (file)
       </item>
     </section>
   </menu>
-  <template class="ExtensionsWindow" parent="GtkApplicationWindow">
+  <template class="ExtensionsWindow" parent="AdwApplicationWindow">
     <property name="default-width">800</property>
     <property name="default-height">500</property>
     <property name="title" translatable="yes">Extensions</property>
-    <child type="titlebar">
-      <object class="GtkHeaderBar">
-        <child type="end">
-          <object class="GtkMenuButton" id="menuButton">
-            <property name="receives-default">True</property>
-            <property name="menu-model">primary-menu</property>
-            <property name="icon-name">open-menu-symbolic</property>
-          </object>
-        </child>
-        <child type="end">
-          <object class="GtkToggleButton" id="searchButton">
-            <property name="receives-default">True</property>
-            <property name="icon-name">edit-find-symbolic</property>
-            <child>
-              <object class="GtkShortcutController">
-                <property name='scope'>global</property>
-                <child>
-                  <object class='GtkShortcut'>
-                    <property name='trigger'>&lt;Control&gt;f</property>
-                    <property name='action'>activate</property>
-                  </object>
-                </child>
+    <child>
+      <object class="GtkBox">
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkHeaderBar">
+            <child type="end">
+              <object class="GtkMenuButton" id="menuButton">
+                <property name="receives-default">True</property>
+                <property name="menu-model">primary-menu</property>
+                <property name="icon-name">open-menu-symbolic</property>
+              </object>
+            </child>
+            <child type="end">
+              <object class="GtkToggleButton" id="searchButton">
+                <property name="receives-default">True</property>
+                <property name="icon-name">edit-find-symbolic</property>
                 <child>
-                  <object class='GtkShortcut'>
-                    <property name='trigger'>&lt;Control&gt;s</property>
-                    <property name='action'>activate</property>
+                  <object class="GtkShortcutController">
+                    <property name='scope'>global</property>
+                    <child>
+                      <object class='GtkShortcut'>
+                        <property name='trigger'>&lt;Control&gt;f</property>
+                        <property name='action'>activate</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class='GtkShortcut'>
+                        <property name='trigger'>&lt;Control&gt;s</property>
+                        <property name='action'>activate</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
             </child>
           </object>
         </child>
-      </object>
-    </child>
-    <child>
-      <object class="GtkBox">
-        <property name="orientation">vertical</property>
         <child>
           <object class="GtkSearchBar" id="searchBar">
             <property name="key-capture-widget">ExtensionsWindow</property>
index 792cc9ec4aaadece43a8d79932e8403b148d99e6..dababa71afa5f84e583d9d9c6613bd69d54dc126 100644 (file)
@@ -88,7 +88,7 @@ var ExtensionsWindow = GObject.registerClass({
         'updatesBar',
         'updatesLabel',
     ],
-}, class ExtensionsWindow extends Gtk.ApplicationWindow {
+}, class ExtensionsWindow extends Adw.ApplicationWindow {
     _init(params) {
         super._init(params);